// 非开发模式下路由懒加载

export const lazyLoadHelper = (componentName) => {
    if (process.env.NODE_ENV === 'development') {
        const comp = require(`@/views/${componentName}.vue`);
        return comp.default || comp;
    }
    return () => import(/* webpackChunkName: "view-[request]-[index]" */ `@/views/${componentName}.vue`);
};
